package grape.crm.rest.tag.mapper;

import grape.crm.rest.tag.form.TagListForm;
import grape.crm.service.tag.po.Tag;
import grape.common.rest.mvc.WebMapper;
import org.mapstruct.Mapper;
import grape.crm.rest.tag.form.TagCreateForm;
import grape.crm.rest.tag.form.TagUpdateForm;
import grape.crm.rest.tag.form.TagListPageForm;
import grape.crm.rest.tag.vo.TagVo;
import org.mapstruct.ReportingPolicy;
/**
 * <p>
 * 标签表 前端领域模型映射
 * </p>
 *
 * @author yangwei
 * @since 2020-09-14
 */
@Mapper(componentModel = "spring",unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface TagWebMapper extends WebMapper<TagVo, Tag> {

    Tag formToPo(TagCreateForm f);
    Tag formToPo(TagUpdateForm f);
    Tag formToPo(TagListPageForm f);
    Tag formToPo(TagListForm f);
}
